﻿using System;
using System.Text.RegularExpressions;
namespace Main.RegEx {
    public class RegEx {
        public static void showMatch (string text, string expr) {
            Console.WriteLine ("The Expression: " + expr);
            MatchCollection mc = Regex.Matches (text, expr);
            foreach (Match m in mc) {
                Console.WriteLine (m);
            }
        }
    }
}